{include file="public:header"}
<!--aside nav-->
{include file="public:left"}
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<style>
  .flexigrid .hDiv th div, .flexigrid .bDiv td div, .colCopy div{height: auto}
</style>
<div class="page">
  <div class="flexigrid">

    <div class="mDiv">
      <div class="ftitle">
        <h3>号码库列表</h3>
        <h5>(共{$list_count}条记录)</h5>
      </div>
      <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
      <form class="navbar-form form-inline" action="" method="get">
        <div class="sDiv">
          <div class="sDiv2">
            <select name="mobile_type" class="select">
              <option value="">运营商</option>
              <option value="1" {eq name="mobile_type" value="1"}selected {/eq}>电信</option>
              <option value="2" {eq name="mobile_type" value="2"}selected {/eq}>移动</option>
              <option value="3" {eq name="mobile_type" value="3"}selected {/eq}>联通</option>
            </select>
            <input type="text" class="qsbox" name="keyword" placeholder="手机号码" value="">
            <input  class="btn" type="submit" value="搜索">
          </div>
        </div>
      </form>
    </div>
    <div class="hDiv">
      <div class="hDivBox">
        <table cellspacing="0" cellpadding="0">
          <thead>
          <tr>
            <th class="sign" axis="col0">
              <div style="width: 50px;"><i class="ico-check"></i></div>
            </th>
            <th align="left" class="">
              <div style="text-align: left; width: 24px;">ID</div>
            </th>
            <th align="left" abbr="ac_id" axis="col4" class="">
              <div style="text-align: left; width: 100px;" class="">电话号码</div></th>
            <th align="left" abbr="ac_id" axis="col4" class="">
              <div style="text-align: left; width: 100px;" class="">运营商</div></th>
            <th align="left" abbr="ac_id" axis="col4" class="">
              <div style="text-align: left; width: 80px;" class="">操作</div>
            </th>
            <th style="width:100%" axis="col7">
              <div></div>
            </th>
          </tr>
          </thead>
        </table>
      </div>
    </div>
    <div class="tDiv">
        <div class="tDiv2">
            <div class="fbutton">
                <a href="{:url('Sms/mobile_lib')}">
                    <div class="add" title="新添加号码">
                        <span><i class="fa fa-plus"></i>新添加号码</span>
                    </div>
                </a>
            </div>
        </div>
        <div style="clear:both"></div>
    </div>
    <div class="bDiv" style="height: auto;">
      <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
        <table>
          <tbody>
            {volist name="list" id="vo"}
            <tr>
              <td class="sign">
                <div style="width: 50px;"><i class="ico-check"></i></div>
              </td>
              <td class="sign">
                <div style="text-align: left;width: 50px;">{$vo.id}</div>
              </td>
              <td align="left" class="">
                <div style="text-align: left; width: 100px;">{$vo.mobile}</div>
              </td>
              <td align="left" class="">
                <div style="text-align: left; width: 100px;">
                    {if condition="$vo.mobile_type eq 1"}电信{/if}
                    {if condition="$vo.mobile_type eq 2"}移动{/if}
                    {if condition="$vo.mobile_type eq 3"}联通{/if}
                </div>
              </td>
              <td align="left" class="">
                <div style="text-align: left; width: 80px;">
                   <a href="javascript:void(0)" data-url="{:url('Sms/mobile_lib_del',array('id'=>$vo['id']))}" onclick="del(this)" class="btn blue">删除</a>
                </div>
                  
              </td>
              <td align="left" class="">
                <div style="text-align: left; width: 120px;"></div>
              </td>
              <td align="left" class="">
                <div style="text-align: left; width: 120px;"><gt name="vo.check_time" value="0"></gt></div>
              </td>
              <td align="" class="" style="width: 100%;">
                <div>&nbsp;</div>
              </td>
            </tr>
           {/volist}
          </tbody>
        </table>
      </div>
      <div class="iDiv" style="display: none;"></div>
    </div>
    <!--分页位置-->
    {$list->render()} 
  </div>
</div>
<script type="text/javascript">
  function del(obj){
    layer.confirm('是否确认删除？', {
      btn: ['是'] //按钮
    }, function(){
      var data_url = $(obj).attr("data-url");
      $.post(data_url,{},function(result){
        window.location.reload();
      });
    });
  }
</script>
</body>
</html>
</html>
